# ###############################################################################
# #
# # Copyright (C) 2010 Jostein Bratlie
# # Contact: jostein.bratlie@gmail.com | http://bratlie.info | http://episteme.hin.no
# #
# # This file is part of GMQtExt, a GMlib and Qt extension library
# #
# # GMQtExt is free software: you can redistribute it and/or modify
# # it under the terms of the GNU Lesser General Public License as published by
# # the Free Software Foundation, either version 3 of the License, or
# # (at your option) any later version.
# #
# # GMQtExt is distributed in the hope that it will be useful,
# # but WITHOUT ANY WARRANTY; without even the implied warranty of
# # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# # GNU Lesser General Public License for more details.
# #
# # You should have received a copy of the GNU Lesser General Public License
# # along with GMQtExt. If not, see <http://www.gnu.org/licenses/>.
# #
# ###############################################################################

include( gmlib.pri )

GMQTEXT_ROOT = $$PWD


isEmpty(GMQTEXT_LIBRARY_BASENAME) {
    GMQTEXT_LIBRARY_BASENAME = lib
}


# #################
# Configuration
# GMlib Features
# GM_GL_EXTENSION enables OpenGL extensions
# GM_SCRIPT_LUA enables lua scripting support through wrapper classes
 DEFINES += GM_GL_EXTENSION
# DEFINES = GM_GL_EXTENSION GM_SCRIPT_LUA
# DEFINES += GMLIB_LIBRARY_BASENAME=\\\"$$GMLIB_LIBRARY_BASENAME\\\"



# Binary vars
GMQTEXT_BIN_PATH = $$GMQTEXT_ROOT/bin

# Lib vars
GMQTEXT_LIBRARY_PATH = $$GMQTEXT_ROOT/$$GMQTEXT_LIBRARY_BASENAME/gmqtext

# Code vars
GMQTEXT_MODULES_ROOT = $$GMQTEXT_ROOT/modules


INCLUDEPATH += \
    $$GMQTEXT_MODULES_ROOT

DEPENDPATH += \
    $$GMQTEXT_MODULES_ROOT


LIBS += -L$$GMQTEXT_LIBRARY_PATH

INCLUDEPATH += /usr/include


CONFIG(debug, debug|release):OBJECTS_DIR = $${OUT_PWD}/.obj/debug
CONFIG(release, debug|release):OBJECTS_DIR = $${OUT_PWD}/.obj/release

CONFIG(debug, debug|release):MOC_DIR = $${OUT_PWD}/.moc/debug
CONFIG(release, debug|release):MOC_DIR = $${OUT_PWD}/.moc/release

RCC_DIR = $${OUT_PWD}/.rcc
UI_DIR = $${OUT_PWD}/.uic



TEMPLATE = lib

CONFIG += staticlib

win32 {
    DLLDESTDIR = GMQTEXT_BIN_PATH
}

DESTDIR = $$GMQTEXT_LIBRARY_PATH


TARGET = gmqtext_$$TARGET

CONFIG( debug, debug|release ) {
    unix:TARGET = $$join(TARGET,,,_debug)
    win32:TARGET = $$join(TARGET,,,D)
}

